package com.adapter.demo05;

/**
 * John扮演适配器角色: 采用的是类的适配器模式
 * John想要只狗,需要将Kittie改造成Puppie
 */
public class John extends Kittie implements Puppie{
    @Override
    public void wao() {
        this.miao();
    }

    @Override
    public void fetchBall() {
        this.catchRat();
    }

    @Override
    public void run() {
        super.run();
    }

    @Override
    public void sleep() {
        super.sleep();
    }
}
